
package View;

import Control.ctrReserva;
import java.awt.GraphicsEnvironment;
import javax.swing.JDialog;
import javax.swing.JFormattedTextField;
import javax.swing.text.MaskFormatter;

public class limReserva extends javax.swing.JFrame {

    private ctrReserva control;
    private MaskFormatter maskHORA, maskDATA;

    public limReserva(ctrReserva objCtrReserva) {
        control = objCtrReserva;
        initComponents();
        //Centraliza janela
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
        int x = ge.getCenterPoint().x - (this.getWidth()/2);
        int y = ge.getCenterPoint().y - (this.getHeight()/2);
        setLocation(x, y);
        //Setar foco na interface superior
        JDialog dia = new JDialog();
        dia.setModal(true);
        dia.setContentPane(getContentPane());
        dia.setBounds(this.getBounds());
        dia.setVisible(true);
        dia.setResizable(false);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        label_nomeCliente = new javax.swing.JLabel();
        combo_nomeCliente = new javax.swing.JComboBox();
        combo_nomeAnimal = new javax.swing.JComboBox();
        label_nomeAnimal = new javax.swing.JLabel();
        label_titulo = new javax.swing.JLabel();
        combo_tipoServico = new javax.swing.JComboBox();
        label_data = new javax.swing.JLabel();
        label_horario = new javax.swing.JLabel();
        scrollPane_observacoes = new javax.swing.JScrollPane();
        textArea_observacoes = new javax.swing.JTextArea();
        label_observacoes = new javax.swing.JLabel();
        combo_especie1 = new javax.swing.JComboBox();
        combo_raca = new javax.swing.JComboBox();
        combo_porte = new javax.swing.JComboBox();
        label_valor = new javax.swing.JLabel();
        botao_alterar = new javax.swing.JButton();
        botao_gravar = new javax.swing.JButton();
        botao_novo = new javax.swing.JButton();
        field_valor = new java.awt.TextField();
        panel_status = new javax.swing.JPanel();
        lanel_status = new javax.swing.JLabel();
        radio_emAberto = new javax.swing.JRadioButton();
        radio_cancelado = new javax.swing.JRadioButton();
        radio_cancelado1 = new javax.swing.JRadioButton();
        try {     maskHORA = new MaskFormatter("##:##"); } catch (Exception ex){     System.out.println("Erro ao setar máscara no field_hora do funcionário."); }
        field_hora = new JFormattedTextField(maskHORA);
        try {     maskDATA = new MaskFormatter("##/##/####"); } catch (Exception ex){     System.out.println("Erro ao setar máscara no field_data do funcionário."); }
        field_data = new JFormattedTextField(maskDATA);

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Reserva de Horário");

        label_nomeCliente.setFont(new java.awt.Font("Tahoma", 0, 12));
        label_nomeCliente.setText("Nome do cliente:");

        combo_nomeCliente.setEditable(true);
        combo_nomeCliente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Escolha" }));
        combo_nomeCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                combo_nomeClienteActionPerformed(evt);
            }
        });

        combo_nomeAnimal.setEditable(true);
        combo_nomeAnimal.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Escolha", "Atendente", "Gerente" }));

        label_nomeAnimal.setFont(new java.awt.Font("Tahoma", 0, 12));
        label_nomeAnimal.setText("Nome do Animal:");

        label_titulo.setFont(new java.awt.Font("Tahoma", 1, 22));
        label_titulo.setForeground(new java.awt.Color(255, 0, 0));
        label_titulo.setText("Reserva de Horário");

        combo_tipoServico.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tipo do Serviço" }));
        combo_tipoServico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                combo_tipoServicoActionPerformed(evt);
            }
        });

        label_data.setFont(new java.awt.Font("Tahoma", 0, 12));
        label_data.setText("Data:");

        label_horario.setFont(new java.awt.Font("Tahoma", 0, 12));
        label_horario.setText("Horário:");

        textArea_observacoes.setColumns(20);
        textArea_observacoes.setRows(5);
        scrollPane_observacoes.setViewportView(textArea_observacoes);

        label_observacoes.setFont(new java.awt.Font("Tahoma", 0, 12));
        label_observacoes.setText("Observações do animal:");

        combo_especie1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Espécie" }));
        combo_especie1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                combo_especie1ActionPerformed(evt);
            }
        });

        combo_raca.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Raça" }));

        combo_porte.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Porte" }));

        label_valor.setFont(new java.awt.Font("Tahoma", 0, 12));
        label_valor.setText("Valor:");

        botao_alterar.setFont(new java.awt.Font("Tahoma", 1, 14));
        botao_alterar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/alterar_registro.gif"))); // NOI18N
        botao_alterar.setText("Alterar");
        botao_alterar.setToolTipText("Alterar cliente cadastrado");
        botao_alterar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botao_alterarActionPerformed(evt);
            }
        });

        botao_gravar.setFont(new java.awt.Font("Tahoma", 1, 14));
        botao_gravar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/grava_registro.gif"))); // NOI18N
        botao_gravar.setText("Gravar");
        botao_gravar.setToolTipText("Gravar novo cliente");
        botao_gravar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botao_gravarActionPerformed(evt);
            }
        });

        botao_novo.setFont(new java.awt.Font("Tahoma", 1, 14));
        botao_novo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo_registro.gif"))); // NOI18N
        botao_novo.setText("Novo");
        botao_novo.setToolTipText("Novo registro");
        botao_novo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botao_novoActionPerformed(evt);
            }
        });

        field_valor.setEditable(false);
        field_valor.setForeground(new java.awt.Color(255, 51, 51));
        field_valor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                field_valorActionPerformed(evt);
            }
        });

        panel_status.setBackground(new java.awt.Color(255, 204, 102));

        lanel_status.setFont(new java.awt.Font("Tahoma", 1, 11));
        lanel_status.setText("Status:");

        radio_emAberto.setBackground(new java.awt.Color(255, 204, 102));
        radio_emAberto.setText("Em aberto");
        radio_emAberto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                radio_emAbertoActionPerformed(evt);
            }
        });

        radio_cancelado.setBackground(new java.awt.Color(255, 204, 102));
        radio_cancelado.setText("Cancelado");
        radio_cancelado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                radio_canceladoActionPerformed(evt);
            }
        });

        radio_cancelado1.setBackground(new java.awt.Color(255, 204, 102));
        radio_cancelado1.setText("Concluído");
        radio_cancelado1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                radio_cancelado1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panel_statusLayout = new javax.swing.GroupLayout(panel_status);
        panel_status.setLayout(panel_statusLayout);
        panel_statusLayout.setHorizontalGroup(
            panel_statusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panel_statusLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lanel_status)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panel_statusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(radio_cancelado, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(radio_cancelado1, javax.swing.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE)
                    .addComponent(radio_emAberto))
                .addContainerGap())
        );
        panel_statusLayout.setVerticalGroup(
            panel_statusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panel_statusLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panel_statusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lanel_status)
                    .addComponent(radio_emAberto))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(radio_cancelado)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(radio_cancelado1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(88, 88, 88)
                .addComponent(label_titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(325, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(28, 28, 28)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(label_observacoes)
                        .addContainerGap())
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(label_nomeCliente)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(combo_nomeCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 229, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(label_nomeAnimal)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(combo_nomeAnimal, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(scrollPane_observacoes, javax.swing.GroupLayout.PREFERRED_SIZE, 329, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(17, 17, 17)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(label_data)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(field_data))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(label_horario)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(field_hora, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(panel_status, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(22, 22, 22)))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGap(28, 28, 28)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(combo_raca, 0, 216, Short.MAX_VALUE)
                                            .addComponent(combo_especie1, 0, 216, Short.MAX_VALUE)
                                            .addComponent(combo_porte, 0, 216, Short.MAX_VALUE)
                                            .addComponent(combo_tipoServico, 0, 216, Short.MAX_VALUE)))
                                    .addGroup(layout.createSequentialGroup()
                                        .addGap(14, 14, 14)
                                        .addComponent(botao_novo, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(botao_gravar, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)
                                            .addComponent(botao_alterar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                                .addGap(24, 24, 24))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(label_valor)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(field_valor, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(67, 67, 67))))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(label_titulo)
                        .addGap(30, 30, 30)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(combo_nomeCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(label_nomeCliente)))
                    .addComponent(field_valor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(label_valor))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(combo_tipoServico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(combo_especie1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(8, 8, 8)
                        .addComponent(combo_raca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(combo_porte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(label_nomeAnimal)
                            .addComponent(combo_nomeAnimal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(label_horario)
                                    .addComponent(field_hora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(label_data, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(field_data, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(30, 30, 30)
                                .addComponent(label_observacoes))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(panel_status, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(scrollPane_observacoes, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(botao_alterar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(botao_gravar, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(botao_novo, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(32, 32, 32))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-645)/2, (screenSize.height-403)/2, 645, 403);
    }// </editor-fold>//GEN-END:initComponents

    private void combo_nomeClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_combo_nomeClienteActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_combo_nomeClienteActionPerformed

    private void combo_tipoServicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_combo_tipoServicoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_combo_tipoServicoActionPerformed

    private void combo_especie1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_combo_especie1ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_combo_especie1ActionPerformed

    private void botao_alterarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botao_alterarActionPerformed
        /*try {
            control.alterarCliente(
                    field_codigo.getText(),
                    field_nome.getText(),
                    field_cpf.getText(),
                    field_email.getText(),
                    field_end_rua.getText(),
                    field_end_bairro.getText(),
                    field_end_bairro.getText(),
                    field_end_cidade.getText(),
                    field_tel_celular.getText(),
                    field_tel_comercial.getText(),
                    field_tel_residencial.getText());
            //this.limpaFields();
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, ex.getMessage());
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(null, ex.getMessage());
        }*/
}//GEN-LAST:event_botao_alterarActionPerformed

    private void botao_novoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botao_novoActionPerformed
        //this.limpaFields();
}//GEN-LAST:event_botao_novoActionPerformed

    private void field_valorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_field_valorActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_field_valorActionPerformed

    private void radio_emAbertoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_radio_emAbertoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_radio_emAbertoActionPerformed

    private void radio_canceladoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_radio_canceladoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_radio_canceladoActionPerformed

    private void radio_cancelado1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_radio_cancelado1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_radio_cancelado1ActionPerformed

    private void botao_gravarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botao_gravarActionPerformed
        /*try {
            control.cadastraCliente(
                    field_nome.getText(),
                    field_cpf.getText(),
                    field_email.getText(),
                    field_end_rua.getText(),
                    field_end_bairro.getText(),
                    field_end_bairro.getText(),
                    field_end_cidade.getText(),
                    field_tel_celular.getText(),
                    field_tel_comercial.getText(),
                    field_tel_residencial.getText());
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, ex.getMessage());
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(null, ex.getMessage());
        }
         */
}//GEN-LAST:event_botao_gravarActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botao_alterar;
    private javax.swing.JButton botao_gravar;
    private javax.swing.JButton botao_novo;
    private javax.swing.JComboBox combo_especie1;
    private javax.swing.JComboBox combo_nomeAnimal;
    private javax.swing.JComboBox combo_nomeCliente;
    private javax.swing.JComboBox combo_porte;
    private javax.swing.JComboBox combo_raca;
    private javax.swing.JComboBox combo_tipoServico;
    private javax.swing.JFormattedTextField field_data;
    private javax.swing.JFormattedTextField field_hora;
    private java.awt.TextField field_valor;
    private javax.swing.JLabel label_data;
    private javax.swing.JLabel label_horario;
    private javax.swing.JLabel label_nomeAnimal;
    private javax.swing.JLabel label_nomeCliente;
    private javax.swing.JLabel label_observacoes;
    private javax.swing.JLabel label_titulo;
    private javax.swing.JLabel label_valor;
    private javax.swing.JLabel lanel_status;
    private javax.swing.JPanel panel_status;
    private javax.swing.JRadioButton radio_cancelado;
    private javax.swing.JRadioButton radio_cancelado1;
    private javax.swing.JRadioButton radio_emAberto;
    private javax.swing.JScrollPane scrollPane_observacoes;
    private javax.swing.JTextArea textArea_observacoes;
    // End of variables declaration//GEN-END:variables

}
